<?php

class foo {
    private $a;
    public $b = 1;
    public $c;
    private $d;
    static $e;
   
    public function test() {
        var_dump(get_object_vars($this));
    }
}

$test = new foo;
echo '<pre>';
print_r(get_object_vars($test));
echo '</pre>';
$test->test();

?>
